package org.tabletopmachine.match;

import java.util.ArrayList;
import org.newdawn.slick.Color;
import org.tabletopmachine.match.unit.*;

public class Player {
	private String _name;
	private Color _unitFillColor;
	private Color _unitBorderColor;
	private ArrayList<Unit> _units;
	private String _armyName;

	public Player(String name, String army, Color unitFillColor, Color unitBorderColor) {
		setName(name);
		setArmyName(army);
		setUnitBorderColor(unitBorderColor);
		setUnitFillColor(unitFillColor);
		_units = new ArrayList<Unit>();
	}

	public void addUnit(Unit unit) {
		_units.add(unit);
	}

	public void removeAllUnits() {
		while (_units.size() > 0)
			_units.remove(0);
	}

	public ArrayList<Unit> getUnits() {
		return _units;
	}

	public String getName() {
		return _name;
	}

	public void setName(String name) {
		_name = name;
	}

	public Color getUnitFillColor() {

		return _unitFillColor;
	}

	public void setUnitFillColor(Color unitFillColor) {
		_unitFillColor = unitFillColor;
	}

	public Color getUnitBorderColor() {
		return _unitBorderColor;
	}

	public void setUnitBorderColor(Color unitBorderColor) {
		_unitBorderColor = unitBorderColor;
	}

	public String getArmyName() {
		return _armyName;
	}

	public void setArmyName(String armyName) {
		_armyName = armyName;
	}
}